WooCommerce\Square\Gateway\API A

Total Complexity 53
Dependencies 31
Dependents 1
Total lines 746
Lines of code 231
Logical lines of code 145
Comment lines 320
Methods 36
Properties 2

Methods 36

Method Rating Maintainability Complexity Lines of code
tokenize_payment_method()
S
57 4 17
credit_card_capture()
S
61 4 11
refund()
S
61 4 11
void()
S
61 4 11
adjust_order()
S
58 3 14
create_order()
S
62 2 10
get_transaction()
S
64 2 9
do_post_parse_response_validation()
S
71 2 6
__construct()
S
75 1 4
get_payment()
S
69 1 6
retrieve_gift_card()
S
69 1 6
retrieve_gift_card_by_gan()
S
69 1 6
supports_remove_tokenized_payment_method()
S
82 1 3
supports_get_tokenized_payment_methods()
S
82 1 3
supports_update_tokenized_payment_method()
S
82 1 3
load_gift_card()
S
68 1 6
get_location_id()
S
82 1 3
get_order()
S
82 1 3
get_api_id()
S
81 1 3
check_debit()
S
98 1 1
refund_gift_card()
S
68 1 6
pay_order()
S
68 1 6
activate_gift_card()
S
68 1 6
create_gift_card()
S
69 1 6
credit_card_authorization()
S
69 1 6
update_payment()
S
67 1 7
update_order()
S
67 1 7
calculate_order()
S
67 1 7
retrieve_order()
S
67 1 7
remove_tokenized_payment_method()
S
70 1 6
get_tokenized_payment_methods()
S
69 1 6
create_customer()
S
69 1 6
create_customer_card()
S
69 1 6
gift_card_charge()
S
69 1 6
credit_card_charge()
S
69 1 6
update_tokenized_payment_method()
S
98 1 1